<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="stripes" uri="http://stripes.sourceforge.net/stripes.tld"%>
<c:import url="header.jsp">
  <c:param name="title" value="Hokejové fórum pro všechny fanoušky"/>
</c:import>
<stripes:errors globalErrorsOnly="true"/>
<div id="registration">
      <h2>Registrace:</h2>
       <stripes:form beanclass="action.RegistrationActionBean" focus="" >
        <table>
        <tr>
        <th>Login*</th>
        <td><stripes:text name="login" class="border"/></td>
        <td><stripes:errors field="login" />${actionBean.msg}</td>
        </tr>
        <tr>
         <th>Heslo*</th>
         <td><stripes:password name="password" class="border"/></td>
         <td><stripes:errors field="password"/></td>
        </tr>
        <tr>
         <th>Heslo*</th>
         <td><stripes:password name="password2" class="border"/></td>
         <td><stripes:errors field="password2"/></td>
        </tr>
        <tr>
         <th>Email*</th>
         <td><stripes:text name="email" class="border"/></td>
         <td><stripes:errors field="email"/></td>
        </tr>
        <tr>
         <th>Info*</th>
         <td><stripes:textarea name="uinfo" id="uinfo" cols="14" rows="3" value="" class="border"/></td>
         <td><stripes:errors field="uinfo"/></td>
        </tr>
        <tr>
         <th>Pohlaví*</th>
         <td>muž<stripes:radio name="gender" id="gender-male" value="muž" checked="checked" class="border"/>
             žena<stripes:radio name="gender" id="gender-female" value="žena" class="border"/></td>
         <td><stripes:errors field="gender"/></td>
        </tr>
        <tr>
         <th>Datum narození</th>
         <td><stripes:text name="dateOfBirth" class="border"/></td>
         <td><stripes:errors field="dateOfBirth"/></td>
        </tr>
         <tr>
         <th>Kontrola* ${actionBean.firstNumber} + ${actionBean.secondNumber} = </th>
         <td><stripes:text name="check" class="border"/></td>
         <td><stripes:errors field="check"/></td>
         <stripes:hidden name="firstNumber"/>
         <stripes:hidden name="secondNumber"/>
        </tr>
        <tr>
         <th></th>
         <td><stripes:submit name="add" value="Registruj"/></td>
        </tr>
       </table>
      </stripes:form>
      <p>Položky označené jako * jsou povinné!</p>
    </div>
<c:import url="footer.jsp">
</c:import>